package com.chinairi.mall.enums;

/**
 * @author yyp
 * @since 2020/10/12 10:49
 */
public enum DateLogoEnum {
    /**
     * 生产进度状态
     */
    DAY("DAY","当日"),
    WEEK("WEEK","当周"),
    MONTH("MONTH","当月"),
    QUARTER("QUARTER","当季"),
    YEAR("YEAR","当年"),

    ;


    private String key;
    private String value;

    DateLogoEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }
    public static String getValueOfKet(String key){
        for (DateLogoEnum q: DateLogoEnum.values()
             ) {
            if (q.getKey().equals(key)){
                return q.getValue();
            }
        }
        return null;
    }

    public String getKey() {
        return key;
    }


    public String getValue() {
        return value;
    }
}
